GET
https://api.applivery.io/v1/organizations/{organizationId}/mdm/apple/enterprise/devices
curl -X GET "https://api.applivery.io/v1/organizations/{organizationId}/mdm/apple/enterprise/devices" \
-H "Authorization: Bearer <YOUR_API_KEY>"const response = await fetch("https://api.applivery.io/v1/organizations/{organizationId}/mdm/apple/enterprise/devices", {
method: "GET",
headers: {
Authorization: "Bearer <YOUR_API_KEY>",
},
});
const data = await response.json();import requests
response = requests.get(
"https://api.applivery.io/v1/organizations/{organizationId}/mdm/apple/enterprise/devices",
headers={"Authorization": "Bearer <YOUR_API_KEY>"},
)
data = response.json()Request
Send your API key in the request header
authorization
Example:
Authorization: Bearer <token>
organizationId
string
required
page
integer
optional
limit
integer
optional
sort
string
optional
mdm-user
string
optional
adm-policy
string
optional
user-adm-policy
string
optional
show-deleted
boolean
optional
tags
array
optional
segmentId
integer
optional
expandTo
string
optional
Responses
200 Response
application/json
status
boolean
optional
data
object
optional
items
array [object]
optional
id
string
optional
organization
string
optional
admEnterprise
string
optional
mdmUser
object
optional
displayName
string
optional
tags
array [string]
optional
state
string
optional
config
object
optional
configDates
object
optional
info
object
optional
enroll
object
optional
control
object
optional
summary
object
optional
smartAttributeAssignments
array [object]
optional
smartAttributeAssignmentsEnforced
array [object]
optional
smartAttributes
array [object]
optional
lastStatusReportTime
string
optional
type
string
optional
subType
string
optional
enrollmentLink
string
optional
enrollCode
string
optional
admPolicy
object
optional
deviceAdmPolicy
object
optional
admPolicyAssignments
array [object]
optional
admPolicyAssignmentsEnforced
array [object]
optional
admVppLocation
object
optional
profiles
array [object]
optional
applications
array [object]
optional
books
array [object]
optional
booksInfo
array [object]
optional
scripts
array [object]
optional
scriptsInfo
array [object]
optional
stateHistory
array [object]
optional
applicationsInfo
array [object]
optional
isDepDevice
boolean
optional
admDepDevice
string
optional
lastLocation
object
optional
counts
object
optional
lastReports
object
optional
enrolledDate
string
optional
hasActivationBypassCode
boolean
optional
hasFileVaultRecoveryKey
boolean
optional
hasFileVaultRecoveryKeyEncrypted
boolean
optional
admDeviceUsers
array [object]
optional
pushNotifications
object
optional
updatedAt
string
optional
createdAt
string
optional
segmentId
integer
optional
devicePolicyStatus
object
optional
totalDocs
integer
optional
limit
integer
optional
hasPrevPage
boolean
optional
hasNextPage
boolean
optional
page
integer
optional
totalPages
integer
optional
prevPage
integer
optional
nextPage
integer
optional
lean
boolean
optional
{
"status": true,
"data": {
"items": [
{
"id": "string",
"organization": "string",
"admEnterprise": "string",
"mdmUser": {
"id": "string",
"email": "string"
},
"displayName": "string",
"tags": [
"string"
],
"state": "PROVISIONING",
"config": {},
"configDates": {},
"info": {},
"enroll": {
"serverExpirationDate": "2024-01-01T00: 00:00Z",
"mobileConfigSigned": true
},
"control": {
"UDID": "string",
"authenticatedDate": "2024-01-01T00: 00:00Z",
"topic": "string",
"deletedDate": "2024-01-01T00: 00:00Z",
"lastTokenUpdateDate": "2024-01-01T00: 00:00Z",
"pushMagic": "string",
"token": "string",
"unlockToken": "string",
"bootstrapToken": "string",
"skipPersonalInfo": true
},
"summary": {
"name": "string",
"osVersion": "string",
"os": "string",
"serialNumber": "string",
"imei": "string",
"battery": "string",
"expirationTimestamp": "2024-01-01T00: 00:00Z",
"supervised": true,
"image": "string",
"compliance": {},
"manufacturer": "string",
"model": "string",
"udid": "string",
"hostname": "string",
"ipAddress": "string",
"macAddress": "string"
},
"smartAttributeAssignments": [
{
"smartAttributeId": "string",
"smartAttribute": {
"id": "string",
"organizationId": "string",
"segmentId": 0,
"exposeToChildren": true,
"name": "string",
"description": "string",
"output": {
"type": "string"
},
"input": {
"type": "constant",
"value": {
"admDevice": {
"value": "string"
},
"aosDevice": {
"value": "string"
},
"emmDevice": {
"value": "string"
},
"winDevice": {
"value": "string"
}
},
"source": "constant"
},
"counts": {
"android": {
"smartAttributeAssignments": 0,
"smartAttributeAssignmentsEnforced": 0
},
"apple": {
"smartAttributeAssignments": 0,
"smartAttributeAssignmentsEnforced": 0
},
"windows": {
"smartAttributeAssignments": 0,
"smartAttributeAssignmentsEnforced": 0
}
}
}
}
],
"smartAttributeAssignmentsEnforced": [
{
"smartAttributeId": "string",
"smartAttribute": {
"id": "string",
"organizationId": "string",
"segmentId": 0,
"exposeToChildren": true,
"name": "string",
"description": "string",
"output": {
"type": "string"
},
"input": {
"type": "constant",
"value": {
"admDevice": {
"value": "string"
},
"aosDevice": {
"value": "string"
},
"emmDevice": {
"value": "string"
},
"winDevice": {
"value": "string"
}
},
"source": "constant"
},
"counts": {
"android": {
"smartAttributeAssignments": 0,
"smartAttributeAssignmentsEnforced": 0
},
"apple": {
"smartAttributeAssignments": 0,
"smartAttributeAssignmentsEnforced": 0
},
"windows": {
"smartAttributeAssignments": 0,
"smartAttributeAssignmentsEnforced": 0
}
}
}
}
],
"smartAttributes": [
{
"id": "string",
"type": "constant",
"label": "string",
"value": "string",
"updatedAt": "2024-01-01T00: 00:00Z"
}
],
"lastStatusReportTime": "2024-01-01T00: 00:00Z",
"type": "string",
"subType": "string",
"enrollmentLink": "string",
"enrollCode": "string",
"admPolicy": {
"id": "698f41b2457fafa13d088793",
"organization": "598f469d457fafa13d088795",
"admEnterprise": "698f42e5457fafa13d088794",
"targetType": "device",
"attachedProfile": {},
"name": "Corporate Security Policy - iOS",
"profiles": [
{
"id": "string",
"organization": "string",
"admEnterprise": "string",
"admPolicy": "string",
"targetType": "device",
"name": "string",
"config": {},
"certificates": [
{
"mdmAssetId": "string",
"format": {
"uuid": "uuid",
"base64": "base64"
},
"location": "string",
"password": "string",
"allowAllAppsAccess": true,
"keyIsExtractable": true
}
],
"type": "attached",
"UUID": "string",
"version": 0,
"updatedAt": "2024-01-01T00: 00:00Z",
"createdAt": "2024-01-01T00: 00:00Z",
"assignedTo": {
"policies": [
{
"id": "string",
"name": "string"
}
],
"devices": [
{
"id": "string",
"displayName": "string"
}
]
},
"useCustomFileVaultCertificates": true,
"parentAdmProfileId": "string"
}
],
"applications": [
{
"admApplication": "698f42e5457fafa13d088794",
"managed": true,
"managementFlags": 5,
"vpp": true,
"iOSApp": true,
"configuration": {},
"action": "forceInstall",
"actionStatus": "forceInstall",
"scripts": {},
"updatePolicy": {}
}
],
"applicationsInfo": [
{}
],
"books": [
{
"type": "asset",
"id": "698f42e5457fafa13d088794"
}
],
"booksInfo": [
{}
],
"scripts": [
{
"type": "loop",
"id": "698f42e5457fafa13d088794",
"loopTime": 3600,
"arguments": "--verbose --check-compliance",
"name": "Security Compliance Check",
"description": "Validates device security posture against organizational standards",
"runner": "bash"
}
],
"scriptsInfo": [
{}
],
"bookmarks": [
{
"title": "Employee Portal",
"description": "Internal employee self-service portal",
"url": "https://portal.company.com",
"iconBase64": "",
"iconUrl": "https://portal.company.com/icon.png"
}
],
"assets": [
{
"mdmAssetId": "698f41b2457fafa13d088793",
"location": "/Library/Application Support/Company/config.json",
"assetName": "App Configuration",
"scope": "system"
}
],
"assetsInfo": [
{}
],
"version": 3,
"updatedAt": "2026-02-13T14: 30:00Z",
"createdAt": "2026-02-13T10: 00:00Z",
"agentConfiguration": {
"allowLocation": true,
"allowLocationMacos": true,
"allowPackageTime": true,
"allowPackageTimeIos": true,
"allowPackageTransfer": true,
"allowPackageTransferIos": true,
"allowDeviceInfoBatteryUsage": true,
"allowDeviceInfoBluetooth": true,
"allowDeviceInfoSystemInfo": true,
"allowDeviceInfoBatteryUsageIos": true,
"allowDeviceInfoBluetoothIos": true,
"allowDeviceInfoSystemInfoIos": true,
"allowNetworkStatusMacos": true,
"allowNetworkStatusIos": true,
"appBlacklist": [
{
"bundleId": "com.example.unauthorized",
"action": "block"
}
],
"policyFeatures": {
"ios": {
"defaultViewFeature": "applications",
"toggledFeatures": [
{
"name": "applications",
"active": true
}
],
"enableDefaultView": true
},
"macos": {
"defaultViewFeature": "applications",
"toggledFeatures": [
{
"name": "applications",
"active": true
}
],
"enableDefaultView": true
}
}
},
"segmentId": "1",
"exposeToChildren": true
},
"deviceAdmPolicy": {
"id": "698f41b2457fafa13d088793",
"organization": "598f469d457fafa13d088795",
"admEnterprise": "698f42e5457fafa13d088794",
"targetType": "device",
"attachedProfile": {},
"name": "Corporate Security Policy - iOS",
"profiles": [
{
"id": "string",
"organization": "string",
"admEnterprise": "string",
"admPolicy": "string",
"targetType": "device",
"name": "string",
"config": {},
"certificates": [
{
"mdmAssetId": "string",
"format": {
"uuid": "uuid",
"base64": "base64"
},
"location": "string",
"password": "string",
"allowAllAppsAccess": true,
"keyIsExtractable": true
}
],
"type": "attached",
"UUID": "string",
"version": 0,
"updatedAt": "2024-01-01T00: 00:00Z",
"createdAt": "2024-01-01T00: 00:00Z",
"assignedTo": {
"policies": [
{
"id": "string",
"name": "string"
}
],
"devices": [
{
"id": "string",
"displayName": "string"
}
]
},
"useCustomFileVaultCertificates": true,
"parentAdmProfileId": "string"
}
],
"applications": [
{
"admApplication": "698f42e5457fafa13d088794",
"managed": true,
"managementFlags": 5,
"vpp": true,
"iOSApp": true,
"configuration": {},
"action": "forceInstall",
"actionStatus": "forceInstall",
"scripts": {},
"updatePolicy": {}
}
],
"applicationsInfo": [
{}
],
"books": [
{
"type": "asset",
"id": "698f42e5457fafa13d088794"
}
],
"booksInfo": [
{}
],
"scripts": [
{
"type": "loop",
"id": "698f42e5457fafa13d088794",
"loopTime": 3600,
"arguments": "--verbose --check-compliance",
"name": "Security Compliance Check",
"description": "Validates device security posture against organizational standards",
"runner": "bash"
}
],
"scriptsInfo": [
{}
],
"bookmarks": [
{
"title": "Employee Portal",
"description": "Internal employee self-service portal",
"url": "https://portal.company.com",
"iconBase64": "",
"iconUrl": "https://portal.company.com/icon.png"
}
],
"assets": [
{
"mdmAssetId": "698f41b2457fafa13d088793",
"location": "/Library/Application Support/Company/config.json",
"assetName": "App Configuration",
"scope": "system"
}
],
"assetsInfo": [
{}
],
"version": 3,
"updatedAt": "2026-02-13T14: 30:00Z",
"createdAt": "2026-02-13T10: 00:00Z",
"agentConfiguration": {
"allowLocation": true,
"allowLocationMacos": true,
"allowPackageTime": true,
"allowPackageTimeIos": true,
"allowPackageTransfer": true,
"allowPackageTransferIos": true,
"allowDeviceInfoBatteryUsage": true,
"allowDeviceInfoBluetooth": true,
"allowDeviceInfoSystemInfo": true,
"allowDeviceInfoBatteryUsageIos": true,
"allowDeviceInfoBluetoothIos": true,
"allowDeviceInfoSystemInfoIos": true,
"allowNetworkStatusMacos": true,
"allowNetworkStatusIos": true,
"appBlacklist": [
{
"bundleId": "com.example.unauthorized",
"action": "block"
}
],
"policyFeatures": {
"ios": {
"defaultViewFeature": "applications",
"toggledFeatures": [
{
"name": "applications",
"active": true
}
],
"enableDefaultView": true
},
"macos": {
"defaultViewFeature": "applications",
"toggledFeatures": [
{
"name": "applications",
"active": true
}
],
"enableDefaultView": true
}
}
},
"segmentId": "1",
"exposeToChildren": true
},
"admPolicyAssignments": [
{
"admPolicyId": "698f42e5457fafa13d08879c",
"admPolicy": {},
"priority": 1
}
],
"admPolicyAssignmentsEnforced": [
{
"admPolicyId": "698f42e5457fafa13d08879c",
"admPolicy": {},
"priority": 1,
"automationRule": {
"id": "698f42e5457fafa13d08879d",
"name": "Sales Team iOS Policies",
"deviceAudiences": [
{
"id": "698f42e5457fafa13d0887a7",
"name": "Sales Department",
"reasons": [
"tag:sales",
"user.department:Sales"
]
}
]
}
}
],
"admVppLocation": {
"id": "string",
"name": "string",
"config": {
"countryISO2ACode": "string",
"defaultPlatform": "string",
"locationName": "string"
}
},
"profiles": [
{
"id": "string",
"organization": "string",
"admEnterprise": "string",
"admPolicy": "string",
"targetType": "device",
"name": "string",
"config": {},
"certificates": [
{
"mdmAssetId": "string",
"format": {
"uuid": "uuid",
"base64": "base64"
},
"location": "string",
"password": "string",
"allowAllAppsAccess": true,
"keyIsExtractable": true
}
],
"type": "attached",
"UUID": "string",
"version": 0,
"updatedAt": "2024-01-01T00: 00:00Z",
"createdAt": "2024-01-01T00: 00:00Z",
"assignedTo": {
"policies": [
{
"id": "string",
"name": "string"
}
],
"devices": [
{
"id": "string",
"displayName": "string"
}
]
},
"useCustomFileVaultCertificates": true,
"parentAdmProfileId": "string"
}
],
"applications": [
{
"admApplication": "698f42e5457fafa13d088794",
"managed": true,
"managementFlags": 5,
"vpp": true,
"iOSApp": true,
"configuration": {},
"action": "forceInstall",
"actionStatus": "forceInstall",
"scripts": {},
"updatePolicy": {}
}
],
"books": [
{
"type": "asset",
"id": "string"
}
],
"booksInfo": [
{}
],
"scripts": [
{
"id": "string",
"type": "once",
"loopTime": 0,
"resetDate": "2024-01-01T00: 00:00Z",
"arguments": "string",
"argumentsProcessed": "string",
"name": "string",
"description": "string",
"runner": "string",
"scope": "user"
}
],
"scriptsInfo": [
{}
],
"stateHistory": [
{
"state": "PROVISIONING",
"date": "2024-01-01T00: 00:00Z",
"config": {}
}
],
"applicationsInfo": [
{}
],
"isDepDevice": true,
"admDepDevice": "string",
"lastLocation": {
"agent": {
"origin": "agent",
"date": "2024-01-01T00: 00:00Z",
"latitude": 0,
"longitude": 0,
"ip": "string",
"lastReportDate": "2024-01-01T00: 00:00Z",
"address": {
"address": "string",
"number": "string",
"postalCode": "string",
"city": "string",
"country": "string"
}
},
"ip": {
"origin": "agent",
"date": "2024-01-01T00: 00:00Z",
"latitude": 0,
"longitude": 0,
"ip": "string",
"lastReportDate": "2024-01-01T00: 00:00Z",
"address": {
"address": "string",
"number": "string",
"postalCode": "string",
"city": "string",
"country": "string"
}
}
},
"counts": {
"users": 0
},
"lastReports": {
"sync": "2024-01-01T00: 00:00Z",
"agent": {
"location": "2024-01-01T00: 00:00Z",
"packageTime": "2024-01-01T00: 00:00Z",
"packageTransfer": "2024-01-01T00: 00:00Z"
}
},
"enrolledDate": "2024-01-01T00: 00:00Z",
"hasActivationBypassCode": true,
"hasFileVaultRecoveryKey": true,
"hasFileVaultRecoveryKeyEncrypted": true,
"admDeviceUsers": [
{}
],
"pushNotifications": {
"mdmAgent": true,
"setupAssistant": true
},
"updatedAt": "2024-01-01T00: 00:00Z",
"createdAt": "2024-01-01T00: 00:00Z",
"segmentId": 0,
"devicePolicyStatus": {
"pushed": true,
"audit": [
{
"profileId": "string",
"uuid": "string",
"hasConfig": true,
"config": {
"version": 0
},
"device": {
"version": 0
}
}
]
}
}
],
"totalDocs": 0,
"limit": 0,
"hasPrevPage": true,
"hasNextPage": true,
"page": 0,
"totalPages": 0,
"prevPage": 0,
"nextPage": 0,
"lean": true
}
}
401 Response
application/json
status
boolean
optional
error
object
optional
code
number
optional
message
string
optional
{
"status": false,
"error": {
"code": 4002,
"message": "No auth token"
}
}
404 Response
application/json
status
boolean
optional
error
object
optional
code
number
optional
message
string
optional
{
"status": false,
"error": {
"code": 3001,
"message": "Entity not found"
}
}